package doantotnghiep.business;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import doantotnghiep.dao.DivisionRoomDao;
import doantotnghiep.model.DivisionRoom;

public class DivisionRoomBusiness {

	@Autowired
	private DivisionRoomDao divisionRoomDao; 
	
	public void addRoom(DivisionRoom divisionRoom) {
		divisionRoomDao.addRoom(divisionRoom);
	}

	public DivisionRoom getRoomByID(int id) {
		return divisionRoomDao.getRoomByID(id);
	}

	public void saveChanged(DivisionRoom divisionRoom) {
		divisionRoomDao.saveRoom(divisionRoom);
	}

	public void deleteRoom(int id) {
		divisionRoomDao.deleteRoom(id);		
	}

	public List<DivisionRoom> getListRoom() { 
		return divisionRoomDao.getListRoom();
	}

	public List<DivisionRoom> getListValidRoom() {
		return divisionRoomDao.getListValidRoom();
	}

}
